﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmUsuarioModificar.aspx.cs" Inherits="Crosland.Automotriz.Web.Seguridad.wFrmUsuarioModificar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx1" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script type="text/javascript">
        function soloLetras(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = " áéíóúabcdefghijklmnñopqrstuvwxyz.";
            especiales = [];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }

   
    </script>
    <script type="text/javascript">

  function Redireccionar() {

         window.location.href = "UsuarioForm.aspx?id="+ <%=ConfigurationManager.AppSettings["Negocio"]%>;

     }
    </script>
    <script type="text/javascript">

    // <![CDATA[

        function ShowPopErrorCambioPass() {
            PopErrorCambioPass.Show();

        }

        function ShowMsj() {
            popupmsj.Show();
        }

    // ]]> 
    </script>
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                

                
               

    </script>
    <div class="main-header" style="width: 100%">
        <div class="main-titulo">
            Actualizar Usuarios</div>
    </div>
    <div class="content-form">
        <asp:UpdatePanel runat="server">
            <ContentTemplate>
                <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
                <table>
                    <tr>
                        <td>
                            <dx:ASPxButton ID="btnGrabar" runat="server" Text="Grabar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                OnClick="btnGrabar_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnLimpiar" runat="server" Text="Limpiar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnLimpiar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                AutoPostBack="False" OnClick="btnSalir_Click">
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
                <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="100%"
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" TabSpacing="0px">
                    <TabPages>
                        <dx:TabPage Text="Datos generales">
                            <ContentCollection>
                                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                   
                                    <table class="filas">
                                        <tr>
                                            <td class="filas">
                                                Usuario:
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxTextBox ID="txtUsuario" runat="server" Width="100%" ClientEnabled="False"
                                                    MaxLength="20" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <ValidationSettings>
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="filas">
                                                Nombre Usuario:
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxTextBox ID="txtNombreUsuario" runat="server" onkeypress="return soloLetras(event)"
                                                    Width="100%" MaxLength="50" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="filas">
                                                Apellidos:
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxTextBox ID="txtApellidos" runat="server" onkeypress="return soloLetras(event)"
                                                    Width="100%" MaxLength="50" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="filas">
                                                Correo Electronico:
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxTextBox ID="txtCorreoElectronico" runat="server" Width="100%" MaxLength="50"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                </dx:ASPxTextBox>
                                            </td>
                                            <td class="filas">
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Email incorrecto"
                                                    SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                    ControlToValidate="txtCorreoElectronico"></asp:RegularExpressionValidator>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td >
                                                <dx:ASPxLabel ID="lblpass" runat="server" Text="Password:" ClientVisible="False">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td >
                                                <dx:ASPxTextBox ID="txtpassword" runat="server" Password="True" Width="100%" MaxLength="50"
                                                    ClientVisible="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <ValidationSettings>
                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                    </ValidationSettings>
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxLabel ID="lblcon" runat="server" Text=" Confirmar Password:" ClientVisible="False">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtpasswordConfir" runat="server" Password="True" Width="100%"
                                                    MaxLength="50" ClientVisible="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" 
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                </dx:ASPxTextBox>
                                            </td>
                                            <td class="filas">
                                                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Password no coincide"
                                                    ControlToCompare="txtpassword" ControlToValidate="txtpasswordConfir" SetFocusOnError="True"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="filas">
                                                Tipo de Usuario:
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxComboBox ID="cboTipoUsuario" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    SelectedIndex="0">
                                                    <Items>
                                                        <dx:ListEditItem Text="Seleccione" Value="0" Selected="True" />
                                                    </Items>
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <dx:ASPxButton ID="btnCambiarPassword" runat="server" Text="Cambiar Password" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Width="203px" AutoPostBack="False" ClientVisible="False">
                                                    <ClientSideEvents Click="function(s, e) {
	PopupCambiarClave.Show();
}"></ClientSideEvents>
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Estado:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboEstado" runat="server" SelectedIndex="0" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <Items>
                                                        <dx:ListEditItem Selected="True" Text="Activo" Value="Activo" />
                                                        <dx:ListEditItem Text="Inactivo" Value="Inactivo" />
                                                    </Items>
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                    <ButtonStyle Width="13px">
                                                    </ButtonStyle>
                                                    <ValidationSettings>
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Recordar:
                                            </td>
                                            <td>
                                                <dx:ASPxCheckBox ID="CheckBoxRecordar" runat="server" Text="Inicio de sesión">
                                                    <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                        </RegularExpression>
                                                    </ValidationSettings>
                                                </dx:ASPxCheckBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxTextBox ID="txtUserCreacion" runat="server" ClientVisible="False" Width="1px"
                                                    Height="1px">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                    </table>
               
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="Accesos">
                            <ContentCollection>
                                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                    <dx:ASPxGridView ID="gvAccesos_Usuarios" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue" AutoGenerateColumns="False" KeyFieldName="nombre"
                                        Width="60%" OnAfterPerformCallback="gvAccesos_Usuarios_AfterPerformCallback">
                                        <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                                        <Columns>
                                            <dx:GridViewCommandColumn Caption="Marcar" ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                VisibleIndex="2" Width="30px">
                                                <ClearFilterButton Visible="True">
                                                </ClearFilterButton>
                                            </dx:GridViewCommandColumn>
                                            <dx:GridViewDataTextColumn Caption="Nombre" FieldName="nombre" ShowInCustomizationForm="True"
                                                VisibleIndex="0" Width="150px">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inválido">
                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Descripción" FieldName="descripcion" ShowInCustomizationForm="True"
                                                VisibleIndex="1" Width="150px">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inválido">
                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="id" ShowInCustomizationForm="True" Visible="False"
                                                VisibleIndex="3">
                                                <PropertiesTextEdit>
                                                    <ValidationSettings ErrorText="Valor inválido">
                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                    </ValidationSettings>
                                                </PropertiesTextEdit>
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" />
                                        <SettingsPager PageSize="1000">
                                        </SettingsPager>
                                        <Settings ShowFilterRow="True" />
                                        <SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="Vendedores asociados">
                            <ContentCollection>
                                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                    <table>
                                        <tr>
                                            <td>
                                                Vendedor:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboVendedor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    IncrementalFilteringMode="Contains" Width="200px">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Organización venta:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboOrgVenta" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    IncrementalFilteringMode="Contains" Width="200px">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Canal:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboCanal" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    IncrementalFilteringMode="Contains" Width="200px">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnAgregarVA" runat="server" Text="Agregar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    OnClick="btnAgregarVA_Click">
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                    <dx:ASPxGridView ID="grdUsuarioVendedor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue" Width="60%" AutoGenerateColumns="False" KeyFieldName="ID_SEG_USUARIO_VENDEDOR"
                                        OnAfterPerformCallback="grdUsuarioVendedor_AfterPerformCallback">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Id" FieldName="ID_SEG_USUARIO_VENDEDOR" ShowInCustomizationForm="True"
                                                VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Vendedor" FieldName="NOMBRE_APELLIDO" ShowInCustomizationForm="True"
                                                VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Organización venta" FieldName="DES_ORG_VTA" ShowInCustomizationForm="True"
                                                VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="DES_CANAL_DISTRIB" ShowInCustomizationForm="True"
                                                Visible="False" VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID_USUARIO" ShowInCustomizationForm="True"
                                                VisibleIndex="4" Visible="False">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID_VENDEDOR" ShowInCustomizationForm="True"
                                                Visible="False" VisibleIndex="5">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID_CANAL" ShowInCustomizationForm="True" Visible="False"
                                                VisibleIndex="6">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID_ORG_VTA" ShowInCustomizationForm="True"
                                                Visible="False" VisibleIndex="7">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" />
                                        <SettingsPager PageSize="20">
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="Clientes Asociados">
                            <ContentCollection>
                                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                    <table>
                                        <tr>
                                            <td class="filas" align="center" dir="ltr">
                                                Id cliente:
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxTextBox ID="txtIdcliente" runat="server" Width="100px">
                                                </dx:ASPxTextBox>
                                            </td>
                                            <td class="filas">
                                                Nombre:
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxTextBox ID="txtDescipcionCliente" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                </dx:ASPxTextBox>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnBuscarCliente" runat="server" Text="..." CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    AutoPostBack="False">
                                                    <ClientSideEvents Click="function(s, e) {
	PopupBusquedaCliente.Show();
}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnAgregarCliente" runat="server" Text="Agregar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    OnClick="btnAgregarCliente_Click">
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                    <dx:ASPxGridView ID="grdCliente" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue" Width="68%" AutoGenerateColumns="False" KeyFieldName="ID_USUARIO_CLIENTE"
                                        OnAfterPerformCallback="grdCliente_AfterPerformCallback">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="Id" FieldName="ID_USUARIO_CLIENTE" ShowInCustomizationForm="True"
                                                VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID_CLIENTE" ShowInCustomizationForm="True"
                                                VisibleIndex="2" Caption="Id cliente">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="DES_CLIENTE" ShowInCustomizationForm="True"
                                                VisibleIndex="3" Caption="Cliente">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Opción" ShowInCustomizationForm="True" VisibleIndex="4"
                                                Width="50px">
                                                <DataItemTemplate>
                                                    <dx:ASPxHyperLink ID="hlEliminar" runat="server" Cursor="pointer" Text="Eliminar">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupEliminarCliente.Show();
}" />
                                                    </dx:ASPxHyperLink>
                                                </DataItemTemplate>
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <SettingsPager PageSize="20">
                                        </SettingsPager>
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="Oficina">
                            <ContentCollection>
                                <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                                    <table>
                                        <tr>
                                            <td>
                                                Organización venta:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboOrganizacion_O" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                    <ButtonStyle Width="13px">
                                                    </ButtonStyle>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Oficina:
                                            </td>
                                            <td>
                                                <dx:ASPxComboBox ID="cboOficina_O" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                    </LoadingPanelStyle>
                                                    <ButtonStyle Width="13px">
                                                    </ButtonStyle>
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnAgregar_O" runat="server" Text="Agregar" AutoPostBack="False"
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px"
                                                    OnClick="btnAgregar_O_Click">
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                    <dx:ASPxGridView ID="grdUsuarioOficina" runat="server" AutoGenerateColumns="False"
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                        Width="60%" KeyFieldName="ID_ORG_VTA" OnHtmlRowPrepared="grdUsuarioOficina_HtmlRowPrepared"
                                        OnAfterPerformCallback="grdUsuarioOficina_AfterPerformCallback">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="ID_ORG_VTA" ShowInCustomizationForm="True"
                                                Visible="False" VisibleIndex="2">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID_OFI_VTA" ShowInCustomizationForm="True"
                                                Visible="False" VisibleIndex="3">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Organización" FieldName="DES_ORGANIZACION" ShowInCustomizationForm="True"
                                                VisibleIndex="4" Width="150px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Oficina" FieldName="DES_OFICINA" ShowInCustomizationForm="True"
                                                VisibleIndex="6" Width="170px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="#" ShowInCustomizationForm="True" VisibleIndex="0"
                                                Width="20px">
                                                <DataItemTemplate>
                                                    <dx:ASPxHyperLink ID="hplAnular" runat="server" ClientInstanceName="hplAnular" Text="Anular"
                                                        Cursor="pointer">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupConfirmacionAnularUsuarioOficina.Show();
}" />
                                                    </dx:ASPxHyperLink>
                                                </DataItemTemplate>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="IND_ESTADO" ShowInCustomizationForm="True"
                                                Visible="False" VisibleIndex="5">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="#" ShowInCustomizationForm="True" VisibleIndex="1"
                                                Width="20px">
                                                <DataItemTemplate>
                                                    <dx:ASPxHyperLink ID="hplActivar" runat="server" Cursor="pointer" Text="Activar">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupConfirmacionActivadoUsuarioOficina.Show();
}" />
                                                    </dx:ASPxHyperLink>
                                                </DataItemTemplate>
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowSort="False" AllowFocusedRow="True" />
                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                            <LoadingPanel ImageSpacing="5px">
                                            </LoadingPanel>
                                        </Styles>
                                        <StylesPager>
                                            <PageNumber ForeColor="#3E4846">
                                            </PageNumber>
                                            <Summary ForeColor="#1E395B">
                                            </Summary>
                                        </StylesPager>
                                        <StylesEditors ButtonEditCellSpacing="0">
                                            <ProgressBar Height="21px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                    </TabPages>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <Paddings Padding="2px" PaddingLeft="5px" PaddingRight="5px" />
                    <ContentStyle>
                        <Paddings Padding="12px" />
                        <Border BorderColor="#859EBF" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                </dx:ASPxPageControl>
                <table>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="PopupBusquedaCliente" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                HeaderText="Busqueda cliente" ClientInstanceName="PopupBusquedaCliente" Modal="True"
                                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" AllowDragging="True"
                                Width="700px">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="630px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                            GroupBoxCaptionOffsetY="-19px" HeaderText="Buscar Cliente" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Height="82px">
                                            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                            <ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px">
                                            </ContentPaddings>
                                            <HeaderStyle>
                                                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                                <Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px">
                                                </Paddings>
                                            </HeaderStyle>
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent4" runat="server" SupportsDisabledAttribute="True">
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 53px" valign="middle" class="formato-tabla-td">
                                                                &nbsp;<asp:Label ID="Label1" runat="server" Text="Buscar:" BorderStyle="None"></asp:Label>
                                                            </td>
                                                            <td style="width: 275px">
                                                                <dx:ASPxTextBox ID="txtPopClienteDescripcion" runat="server" Height="30px" Width="270px"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" MaxLength="100"
                                                                    NullText="NOMBRE COMERCIAL O RUC">
                                                                    <Paddings PaddingLeft="5px" />
                                                                    <NullTextStyle CssClass="watermarked">
                                                                    </NullTextStyle>
                                                                    <ValidationSettings>
                                                                        <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                                        </RegularExpression>
                                                                    </ValidationSettings>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td width="70">
                                                                <dx:ASPxComboBox ID="cboPopClienteOpcion" runat="server" AllowMouseWheel="False"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    EnableAnimation="False" EnableDefaultAppearance="False" Height="30px" SelectedIndex="0"
                                                                    ShowLoadingPanel="False" ShowLoadingPanelImage="False" ShowShadow="False" Spacing="0"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="60px">
                                                                    <Items>
                                                                        <dx:ListEditItem Selected="True" Text="100" Value="100" />
                                                                        <dx:ListEditItem Text="200" Value="200" />
                                                                        <dx:ListEditItem Text="500" Value="500" />
                                                                        <dx:ListEditItem Text="1000" Value="1000" />
                                                                    </Items>
                                                                    <ItemStyle Height="30px" />
                                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                    </LoadingPanelImage>
                                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                                    </LoadingPanelStyle>
                                                                    <DropDownButton Width="20px">
                                                                    </DropDownButton>
                                                                    <ButtonStyle Width="13px">
                                                                    </ButtonStyle>
                                                                    <Paddings PaddingLeft="5px" />
                                                                    <ValidationSettings>
                                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                    </ValidationSettings>
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                            <td style="width: 69px">
                                                                <asp:Label ID="Label2" runat="server" Text="registros"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <dx:ASPxButton ID="btnPopClienteConsultar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Consultar" Width="100px" OnClick="btnPopClienteConsultar_Click">
                                                                    <Image Url="~/Images/search.png">
                                                                    </Image>
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxRoundPanel>
                                        <dx:ASPxGridView ID="grdPopClientesListadoBusqueda" runat="server" AutoGenerateColumns="False"
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            KeyFieldName="ID_CLIENTE" Width="100%" Style="margin-top: 0px" OnPageIndexChanged="grdPopClientesListadoBusqueda_PageIndexChanged">
                                            <Columns>
                                                <dx:GridViewCommandColumn Caption="Marcar" ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                    VisibleIndex="0" Width="10px">
                                                </dx:GridViewCommandColumn>
                                                <dx:GridViewDataTextColumn Caption="Razón Social" FieldName="DES_CLIENTE" VisibleIndex="4">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="ID" FieldName="ID_CLIENTE" VisibleIndex="1" Width="50px">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <CellStyle HorizontalAlign="Center">
                                                    </CellStyle>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Nombre Comercial" FieldName="NOM_COMERCIAL" VisibleIndex="3">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="RUC" FieldName="NIF" VisibleIndex="5">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_CLIENTE" VisibleIndex="2">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowSort="False" />
                                            <SettingsPager NumericButtonCount="15" PageSize="15">
                                            </SettingsPager>
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                                <ProgressBar Height="21px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                        <table style="width: 100%;">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="btnPopBusquedaClienteAceptar" runat="server" Text="Agregar" AutoPostBack="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        OnClick="btnPopBusquedaClienteAceptar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="left">
                                                    <dx:ASPxButton ID="btnPopBusClienteCancelar" runat="server" Text="Cancelar" AutoPostBack="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupBusquedaCliente.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <br />

                            <dx:ASPxPopupControl ID="PopupCambiarClave" runat="server" ClientInstanceName="PopupCambiarClave"
                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                HeaderText="Cambiar Password" LoadingPanelText="Cargando&amp;hellip;" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                Width="400px" Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                    <Paddings Padding="0px"></Paddings>
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="10px" PaddingBottom="4px" PaddingRight="4px" PaddingTop="4px" />
                                    <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px">
                                    </Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                        <table>
                                            <tr>
                                                <td class="filas">
                                                    Password nuevo:
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtPPasswordNuevo" runat="server" Width="160px" Password="True"
                                                        MaxLength="50" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                            </RegularExpression>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas">
                                                    Confirmar password:
                                                </td>
                                                <td class="filas">
                                                    <dx:ASPxTextBox ID="txtPPasswordConfirmar" runat="server" Width="160px" Password="True"
                                                        MaxLength="50" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ValidationSettings>
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular">
                                                            </RegularExpression>
                                                        </ValidationSettings>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    &nbsp; &nbsp;
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnAceptarPop" runat="server" Text="Aceptar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        AutoPostBack="False" OnClick="btnAceptarPop_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnCancelarPop" runat="server" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupCambiarClave.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                                CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                    <Paddings Padding="0px"></Paddings>
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px">
                                    </Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="Panelpopup" runat="server">
                                                    <table align="center">
                                                        <tr>
                                                            <td colspan="2">
                                                                <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue">
                                                                </dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table align="center">
                                                        <tr>
                                                            <td align="center" style="width: 215px">
                                                                <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" AutoPostBack="False"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupConfirmacionAnularUsuarioOficina" runat="server" AllowDragging="True"
                                ClientInstanceName="PopupConfirmacionAnularUsuarioOficina" CloseAction="CloseButton"
                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                    <Paddings Padding="0px"></Paddings>
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px">
                                    </Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent1" runat="server">
                                                    <table align="center">
                                                        <tr>
                                                            <td colspan="2">
                                                                ¿ Estas seguro de anular ?
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table align="center">
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxButton ID="btnAceptarA" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" OnClick="btnAceptarA_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Aceptar">
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td>
                                                                <dx:ASPxButton ID="btnCancelarA" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Cancelar">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupConfirmacionAnularUsuarioOficina.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupConfirmacionActivadoUsuarioOficina" runat="server"
                                AllowDragging="True" ClientInstanceName="PopupConfirmacionActivadoUsuarioOficina"
                                CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                    <Paddings Padding="0px"></Paddings>
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px">
                                    </Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent2" runat="server">
                                                    <table align="center">
                                                        <tr>
                                                            <td colspan="2">
                                                                ¿ Estas seguro de activar ?
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table align="center">
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxButton ID="btnActivar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" OnClick="btnActivar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Aceptar">
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td>
                                                                <dx:ASPxButton ID="ASPxButton3" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Cancelar">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupConfirmacionActivadoUsuarioOficina.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PopupEliminarCliente" runat="server" AllowDragging="True"
                                ClientInstanceName="PopupEliminarCliente" CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                    <Paddings Padding="0px"></Paddings>
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px">
                                    </Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent3" runat="server">
                                                    <table align="center">
                                                        <tr>
                                                            <td colspan="2">
                                                                ¿ Estas seguro de eliminar&nbsp; ?
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table align="center">
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxButton ID="btnPopClienteAceptar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" OnClick="btnPopClienteAceptar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Aceptar">
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td>
                                                                <dx:ASPxButton ID="btnPopClienteCancelar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Cancelar">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupEliminarCliente.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
